package com.example.cloud.controller.business.attendance;

import com.example.cloud.controller.common.BaseController;
import com.example.cloud.model.business.attendance.MainClassSchedule;
import com.example.cloud.model.dto.QueryModel;
import com.example.cloud.model.dto.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


/**
 * Created by wangtao on 2018/5/23.
 */
public class MainController extends BaseController {

    @PostMapping("/search")
    public Result search(@RequestBody QueryModel model) {
        return this.singleQuery(model, MainClassSchedule.class);
    }
}
